<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{dwhRpt041Bean.id}"/>
		<f:event type="preRenderView" listener="#{dwhRpt041Bean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Dwh Rpt 041"/>

	<ui:define name="header">
		Dwh Rpt 041
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty dwhRpt041Bean.id}">
				Edit existing Dwh Rpt 041
			</c:when>
			<c:otherwise>
				Create a new Dwh Rpt 041
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="dwhRpt041BeanDwhRpt041RecNo" value="Rec No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041RecNo" required="true" value="#{dwhRpt041Bean.dwhRpt041.recNo}"/>
					<h:message for="dwhRpt041BeanDwhRpt041RecNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041CreatedDtm" value="Created Dtm:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041CreatedDtm" maxLength="19" value="#{dwhRpt041Bean.dwhRpt041.createdDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="dwhRpt041BeanDwhRpt041CreatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041OrgNo" value="Org No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041OrgNo" value="#{dwhRpt041Bean.dwhRpt041.orgNo}"/>
					<h:message for="dwhRpt041BeanDwhRpt041OrgNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041LoanContractGrpNo" value="Loan Contract Grp No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041LoanContractGrpNo" value="#{dwhRpt041Bean.dwhRpt041.loanContractGrpNo}"/>
					<h:message for="dwhRpt041BeanDwhRpt041LoanContractGrpNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041YearNo" value="Year No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041YearNo" value="#{dwhRpt041Bean.dwhRpt041.yearNo}"/>
					<h:message for="dwhRpt041BeanDwhRpt041YearNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041MonthNo" value="Month No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041MonthNo" value="#{dwhRpt041Bean.dwhRpt041.monthNo}"/>
					<h:message for="dwhRpt041BeanDwhRpt041MonthNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041ContractRecNo" value="Contract Rec No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041ContractRecNo" value="#{dwhRpt041Bean.dwhRpt041.contractRecNo}"/>
					<h:message for="dwhRpt041BeanDwhRpt041ContractRecNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041ContractCode" value="Contract Code:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041ContractCode" maxLength="10" value="#{dwhRpt041Bean.dwhRpt041.contractCode}"/>
					<h:message for="dwhRpt041BeanDwhRpt041ContractCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041ContractOrgName" value="Contract Org Name:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041ContractOrgName" maxLength="200" value="#{dwhRpt041Bean.dwhRpt041.contractOrgName}"/>
					<h:message for="dwhRpt041BeanDwhRpt041ContractOrgName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041CustName" value="Cust Name:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041CustName" maxLength="200" value="#{dwhRpt041Bean.dwhRpt041.custName}"/>
					<h:message for="dwhRpt041BeanDwhRpt041CustName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041PayTerm" value="Pay Term:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041PayTerm" maxLength="50" value="#{dwhRpt041Bean.dwhRpt041.payTerm}"/>
					<h:message for="dwhRpt041BeanDwhRpt041PayTerm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041InstallmentPerMonthVal" value="Installment Per Month Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041InstallmentPerMonthVal" value="#{dwhRpt041Bean.dwhRpt041.installmentPerMonthVal}"/>
					<h:message for="dwhRpt041BeanDwhRpt041InstallmentPerMonthVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041PayPrincipalVal" value="Pay Principal Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041PayPrincipalVal" value="#{dwhRpt041Bean.dwhRpt041.payPrincipalVal}"/>
					<h:message for="dwhRpt041BeanDwhRpt041PayPrincipalVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041PayInterestVal" value="Pay Interest Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041PayInterestVal" value="#{dwhRpt041Bean.dwhRpt041.payInterestVal}"/>
					<h:message for="dwhRpt041BeanDwhRpt041PayInterestVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041PayLoanFeeVal" value="Pay Loan Fee Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041PayLoanFeeVal" value="#{dwhRpt041Bean.dwhRpt041.payLoanFeeVal}"/>
					<h:message for="dwhRpt041BeanDwhRpt041PayLoanFeeVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041InstallmentValMustPay" value="Installment Val Must Pay:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041InstallmentValMustPay" value="#{dwhRpt041Bean.dwhRpt041.installmentValMustPay}"/>
					<h:message for="dwhRpt041BeanDwhRpt041InstallmentValMustPay" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041CloseBfEndTermVal" value="Close Bf End Term Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041CloseBfEndTermVal" value="#{dwhRpt041Bean.dwhRpt041.closeBfEndTermVal}"/>
					<h:message for="dwhRpt041BeanDwhRpt041CloseBfEndTermVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041CloseBfEndTermDiscVal" value="Close Bf End Term Disc Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041CloseBfEndTermDiscVal" value="#{dwhRpt041Bean.dwhRpt041.closeBfEndTermDiscVal}"/>
					<h:message for="dwhRpt041BeanDwhRpt041CloseBfEndTermDiscVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt041BeanDwhRpt041PayDateString" value="Pay Date String:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt041BeanDwhRpt041PayDateString" maxLength="50" value="#{dwhRpt041Bean.dwhRpt041.payDateString}"/>
					<h:message for="dwhRpt041BeanDwhRpt041PayDateString" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{dwhRpt041Bean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty dwhRpt041Bean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{dwhRpt041Bean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{dwhRpt041Bean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>